<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<script src="__PUBLIC__/assets/js/jquery.min.js"></script>

</head>
<body>

<div id="div1"><h2>使用 jQuery AJAX 修改文本内容</h2></div>
<button>获取其他内容</button>

</body>
</html>
<script>
$(document).ready(function(){
  $("button").click(function(){
    $.ajax({url:"http://localhost:8011/ajaxtest/Application/Ajax/View/Index/demo_test.txt",success:function(result){
      $("#div1").html(result);
    }});
  });
});
</script>